package com.hzw.entity;

import com.hzw.common.MapperGenerator;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


@Data
@Entity
@Table(name = "order")
public class Order {
    private static final long serialVersionUID = 1L;

    @Column(name = "id")
    @Id
    private String id;

    @Column(name = "create_time")
    private String createTime;

    @Column(name = "finish_time")
    private String finishTime;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "status")
    private Integer status;

    @Column(name = "phone")
    private String phone;

    @Column(name = "real_name")
    private String realName;

    @Column(name = "place")
    private String place;

    @Column(name = "price")
    private String price;


    public Order() {
    }

    public static void main(String[] args) {
        System.out.println(MapperGenerator.genMapper(Order.class));
    }

}
